<?php
include_once dirname(__FILE__).'/data.php';
class Data_dmyuser extends Data {
    private $table = 'my_user';
    
    public function checkLogin($name) {
        $db = $this->connect('note');
        if(!$db) return false;
        $sql = "select * from {$this->table} where username='{$name}'";
        $return = $db->query('set names "UTF8"');
        $return = $db->query($sql);
        $result = $db->fetch($return);
        return $result;
    }
}
?>